﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace Puzzles_IQ
{
    class InformationHelper
    {
        public string LoadImgDescription(string imgpath)
        {
            string imgTextPath = imgpath.Substring(0, imgpath.Length - 3) + "rtf";

            if (File.Exists(imgTextPath))
            {
                return imgTextPath;
            }
            else
            {
                return @"Collections\solving-puzzles.rtf".AddApplicationPath();
            }

        }
    }
}
